'''
Created on 30 Nov 2012

@author: quirino.brizi
'''

import sys

_ver = sys.version_info

is_py2 = (_ver[0]==2)
is_py3 = (_ver[0]==3)


try :
    import pycurl2 as pycurl
except ImportError :
    import pycurl
    
try:
    from cStringIO import StringIO
except ImportError:
    from StringIO import StringIO

if is_py2 :
    from urlparse import urlparse, urlunparse
    from urllib import urlencode

if is_py3 :
    pass